home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 64
/
064.d81
/
us cities
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
12KB
|
329 lines
10 print"[147]"
20 sys57812"tod.o",8,0:poke780,0:poke781,0:poke782,192:sys65493
40 printchr$(14):poke53280,0:poke53281,0:printchr$(158):clr:i=rnd(-ti)
50 poke214,2:print:printtab(16)"[155][204][207][193][196][211][212][193][210]"
60 printtab(16)"[153][163][163][163][163][163][163][163][163]"
70 printtab(14)"[156][208]resents...."
80 poke214,7:print:forx=1to3:printtab(8)chr$(18)" "
90 nextx:poke214,8:print:printchr$(159)chr$(18)tab(10)"[213][206][201][212][197][196][160][211][212][193][212][197][211][160][195][201][212][201][197][211]"
100 gosub61000
110 open15,8,15,"r0:top score=top score":input#15,er:close15
112 ifer<>63then120
115 open3,8,3,"top score,s,r"
117 input#3,hs
118 input#3,hs$
119 close3
120 poke214,11:print:printchr$(5)tab(5)"[196]o you need directions? (y/n)":poke649,1
130 geta$:ifa$<>"y"anda$<>"n"then130
150 ifa$="n"then400
160 poke649,0:print"[147]":printchr$(159)tab(14)"[196][201][210][197][195][212][201][207][206][211]":poke214,4:print
170 print"1) [197]ach question is worth between 10 and 50 points."
180 print"2) [212]ype out your answer completely - [211][208][197][204][204][201][206][199] and"
190 print" [145][195][193][208][201][212][193][204][201][218][193][212][201][207][206] count!"
200 print"3) [212]he program ends exactly 5 minutes after you begin."
210 print"4) [212]he number of questions you have"
215 print" correctly answered in a row is"
220 print" displayed in the upper righthand corner of the screen.
230 [153]"5) (NULL)o end the program early, type 'quit' when";
240 [153]" answering a question."
250 [153][163]13)[199](159)"sys(NULL)ress any key":[151]649,10
260 [161]a$:[139]a$[178]""[167]260
270 [151]649,0:[153]"load":[153][163]14)"peek(NULL)(NULL)(NULL)(NULL) (NULL)(NULL)right$(NULL)(NULL)(NULL)"
280 [153][163]4)"(for consecutive correct answers)
290 printtab(5)chr$(5)"[206][213][205][194][197][210]";:printtab(21)"[194][207][206][213][211] [208][207][201][206][212][211]"
300 printchr$(30)tab(8)"5............100-500"
310 printtab(7)"10............500-1000"
320 printtab(7)"15............1000-1500"
330 printtab(7)"20............1500-2000"
340 printtab(7)"25............2000-4000"
350 printtab(7)"30............10000, [150]plus 5":printtab(21)"added minutes"
360 printtab(21)"of playing time!
370 [153][163]13)[199](159)"sys(NULL)ress any key":[151]649,10
380 [161]a$:[139]a$[178]""[167]380
390 [151]649,0
400 qu[178]140:co[178]0:[134]dp(qu):nd[178]0:po[178]0
405 [158]49155:[158]49152,7,10,0,"xxxx"
410 [141]850:[140]
420 i[178][181]([187](1)[172]qu)[170]1:[139]dp(i)[178]1[167]420
430 dp(i)[178]1:i[178](i[172]2)[171]1:i[178]i[170]9
440 [129]h[178]1[164]i:[135]qu$:[130]h:[135]an$:[141]970
450 [151]214,12:[153]:[153]"";qu$;:[153][199](152)" is located in what state?";
460 [151]649,10
470 [139][194](49160)[177][178]5[167]1910
480 [151]214,14:[153]:[153][199](156)"(NULL)our atnnswer? ";:[141]2740
490 [139]ya$[178]"quit"[176]ya$[178]"(NULL)uit"[176]ya$[178]"(NULL)(NULL)right$(NULL)"[167]1910
500 [153]:[151]649,0:[139]ya$[179][177]an$[167][137]680
510 [151]53280,14:[153][199](149)"lenorrect!"
520 [151]54296,15:[151]54277,87:[151]54278,89:[151]54275,1:[151]54273,19
530 [151]54276,67:[129]kk[178]1[164]130:[130]:[151]54276,64:[151]54273,50:[151]54276,67
540 [129]kk[178]1[164]130:[130]:[151]54276,64:[151]54296,0
550 po[178]po[170]rs:co[178]co[170]1:nd[178]nd[170]1
570 [151]214,10:[153]:[153][163]29)" cmdcmdcmd"co
580 [151]214,19:[153]:[153]" "
590 [151]214,19:[153]:[153][163]4)[199](144);po:[129]x[178]1[164]1000:[130]
600 [139]co[178]5[167][141]2190
610 [139]co[178]10[167][141]2280
620 [139]co[178]15[167][141]2370
630 [139]co[178]20[167][141]2460
640 [139]co[178]25[167][141]2550
650 [139]co[178]30[167][141]2640
660 [139]nd[178]140[167][137]1910
670 [140]:[137]410
680 co[178]0:nd[178]nd[170]1:[140]
690 [151]53280,0:[151]54296,15:[151]54277,0:[151]54278,240
700 [135]a:[135]b:[135]c:[139]b[178][171]1[167][137]730
710 [151]54273,a:[151]54272,b:[151]54276,17:[129]t[178]1[164]200:[130]:[151]54276,16:[137]690
720 [131]11,150,110,9,77,5,-1,-1,-1
730 v$[178]"(NULL)he right answer is "
740 v$[178]v$[170]an$[170]"."
750 [129]l[178]54272[164]54296:[151]l,0:[130]
760 [151]54296,15:[151]54277,0:[151]54278,240:[151]54273,34:[151]54272,75
770 [151]54284,0:[151]54285,240:[151]54280,14:[151]54279,24
780 [129]t[178]1[164][195](v$):[153][202](v$,t,1)"_cmd";:jk[178]jk[170]1:[139]jk[179]2[167]800
790 jk[178]0:[151]54276,17:[151]54283,17:[151]54276,16:[151]54283,14
800 [130]:[153]" "
810 [151]214,17:[153]:[129]x[178]1[164][195](an$):[153][163]20)"stoptab(";:[130]x
820 [129]x[178]1[164]2000:[130]
830 [139]nd[178]140[167][137]1910
840 [137]410
850 [153]"load";:[151]53280,5:[151]53281,1: [129]a[178]1[164]4
860 [153][199](31)" * * * * * * ";[199](28)" wait";
870 [153][199](31)" * * * * * "
880 [130]a:[153][199](31)" * * * * * * ";[199](28)" "
890 [151]214,20:[153]:[153][199](28)" "
900 [153][199](28)" wait";
910 [151]214,9:[153]:[153][163]13)"clr(NULL)(NULL)val(NULL)(NULL)right$(NULL)(NULL)";nd[170]1
920 [129]i[178]217[164]242:[151]i,[194](i)[176]128:[130]
921 [151]214,8:[153]:[153][163]26)"stoportantantantantantantantantantantan^"
922 [153][163]26)"stop(NULL)left$(NULL)=";hs;[163]38)"stop(NULL)"
923 [153][163]26)"stop(NULL)len(NULL)=";co;[163]38)"stop(NULL)"
924 [153][163]26)"stop/tantantantantantantantantantantanexp"
925 [151]214,8:[153]:[153]" stoportantantantantantantantantan^"
926 [153]" stop(NULL)(NULL)right$(NULL)val (NULL)"
928 [153]" stop/tantantantantantantantantanexp"
930 [151]214,18:[153]:[153][163]1)[199](154)"(NULL)(NULL)(NULL)(NULL)close(NULL)len(NULL)(NULL)valon"
940 [153][163]17)[199](151)"peek(NULL)(NULL)(NULL)(NULL)on"
950 [153][163]28)[199](154)"(NULL)(NULL)right$(NULL)(NULL) (NULL)atn(NULL)(NULL)val"
960 [151]214,19:[153]:[153][163]4)[199](144)po:[142]
970 [129]ll[178]1[164]15:rs[178][181]([187](1)[172]41)[170]10
980 [151]214,19:[153]:[153][163]31)"stop";rs
990 [130]ll
1000 [142]
1010 [151]214,17:[153]:[153][163]13)[199](31)" "
1020 [153][163]13)" "
1030 [153][163]13)" "
1040 [151]214,18:[153]:[153][163]17)[199](144)"peek(NULL)(NULL)(NULL)(NULL)":[142]
1050 [139]co[178]5[167]bo[178][181]([187](1)[172]401)[170]100
1060 [139]co[178]10[167]bo[178][181]([187](1)[172]501)[170]500
1070 [139]co[178]15[167]bo[178][181]([187](1)[172]501)[170]1000
1080 [139]co[178]20[167]bo[178][181]([187](1)[172]501)[170]1500
1090 [139]co[178]25[167]bo[178][181]([187](1)[172]2001)[170]2000
1100 [139]co[178]30[167]bo[178]10000:co[178]0:[137]1120
1110 [151]53280,2:[142]
1120 [129]y[178]1[164]5:[151]214,19:[153]:[153][163]17)"10000"
1130 [129]x[178]1[164]500:[130]x
1140 [151]214,19:[153]:[153][163]17)" ":[129]x[178]1[164]500:[130]x
1150 [130]y
1160 po[178]po[170]10000:[158]49155:[158]49152,7,10,0,"xxxx":[137]660
1170 [143]
1180 [151]214,8:[153]:[129]x[178]1[164]9
1200 [153]" ":[130]x
1210 ds[178][181]([187](1)[172]7)[170]3
1220 rn[178][181]([187](1)[172]ds)[170]1
1230 [151]214,10:[153]:[153][199](30)"right$'ve picked a number between 1 and";ds;"cmd."
1240 [153]"chr$uess it and your bonus is doubled!"
1250 [151]649,10
1260 [153]"clr(NULL)hat is your guess?stop"
1270 [153][163]21)"frefrefre"
1280 [161]yg$:yg[178][197](yg$)
1290 [139]yg[179]1[176]yg[177]ds[167]1280
1300 [151]214,12:[153]:[153][163]22)"";yg$
1310 [151]649,0
1320 [139][197](yg$)[179][177]rn[167][153][199](144)"(NULL)orry, the number was";rn;"cmd.":[137]1400
1330 [153][199](150)"(NULL)(NULL)(NULL) str$right$str$ right$(NULL)!!"
1340 s[178]54272:[151]s[170]24,15:[151]s[170]6,240:[151]s[170]4,17
1350 [129]a[178]1[164]5:[129]u[178]1[164]150[169]25:[151]s[170]1,u:[130]u:[130]a:[151]s[170]4,32
1360 [151]214,15:[153]:[153][163]14)"str$ (NULL) (NULL) peek (NULL) val"
1370 [151]214,19:[153]:[153][163]17)" ":[129]x[178]1[164]1000:[130]
1380 [151]214,19:[153]:[153][163]17);bo[172]2
1390 bo[178]bo[172]2:[129]x[178]1[164]1000:[130]:[142